<?php

class Front_Helper_Object_Merge extends Front_Base{
    protected $dependence = array();
    protected $script = "
        function frontHelperObjectMerge(objects){
            var newObject = objects[0];
            objects.splice(0, 1);
            if(objects.length > 0){
                for(keyObject in objects){
                    for(keyProperty in objects[keyObject]){
                        newObject[keyProperty] = objects[keyObject][keyProperty];
                    }
                }
            }
            return newObject;
        }
    ";
}